package com.mustafaiev.tair.cts.authentication;

import java.util.Collection;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

public class CostsTrackingSystemGAEAuthToken extends
		UsernamePasswordAuthenticationToken {

	private static final long serialVersionUID = -3062378256819104238L;

	private String destinationUrl;

	public CostsTrackingSystemGAEAuthToken(final Object principal,
			final Object credentials) {
		super(principal, credentials);
	}

	public CostsTrackingSystemGAEAuthToken(final Object principal,
			final Object credentials, final String destinationUrl) {
		super(principal, credentials);
		this.setDestinationUrl(destinationUrl);
	}

	public CostsTrackingSystemGAEAuthToken(final Object principal,
			final Object credentials,
			final Collection<? extends GrantedAuthority> authorities) {
		super(principal, credentials, authorities);
	}

	public String getDestinationUrl() {
		return destinationUrl;
	}

	public void setDestinationUrl(String destinationUrl) {
		this.destinationUrl = destinationUrl;
	}

}
